<?php

namespace ZfUser\Controller;

use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;

class UserController extends AbstractActionController
{
    protected $registerForm;
    
    public function indexAction()
    {
        return new ViewModel();
    }

    public function registerAction()
    {
        $form = $this->getRegisterForm();
        return new ViewModel();
    }
    
    public function getRegisterForm()
    {
        if(!$this->registerForm)
        {
            $this->setRegisterForm($this->getServiceLocator()->get('zfuser_register_form'));
        }
        return $this->registerForm;
    }
    
    public function setRegisterForm($registerForm)
    {
        $this->registerForm = $registerForm;
    }
}

